cmake_minimum_required (VERSION 2.6)
project (Sorting)

# The version number
set (Sorting_VERSION_MAJOR 1)
set (Sorting_VERSION_MINOR 0)

# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
  "${PROJECT_SOURCE_DIR}/sorting/SortingConfig.h.in"
  "${PROJECT_BINARY_DIR}/SortingConfig.h"
  )

# add the binary tree to the search path for include files
# so that we will find TutorialConfig.h
include_directories("${PROJECT_BINARY_DIR}")

# add the executable
set(EXECUTABLE_OUTPUT_PATH bins)
add_executable(01bubble_sort sorting/01bubble_sort.cpp)
add_executable(02select_sort sorting/02select_sort.cpp)
add_executable(03insertion_sort sorting/03insertion_sort.cpp)
add_executable(04shell_sort sorting/04shell_sort.cpp)
add_executable(05quik_sort sorting/05quik_sort.cpp)
add_executable(06merge_sort sorting/06merge_sort.cpp)
add_executable(07heap_sort sorting/07heap_sort.cpp)
add_executable(08count_sort sorting/08count_sort.cpp)
add_executable(09bucket_sort sorting/09bucket_sort.cpp)
add_executable(10radix_sort sorting/10radix_sort.cpp)
